package eteam.aps.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import eteam.aps.common.entity.ParentEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * 工单物料表;
 *
 * @author LiuLei
 */
@ApiModel(value = "MocoRdersBordy", description = "工单物料表")
@TableName("zn_moco_rders_bordy")
@JsonIgnoreProperties(ignoreUnknown = true)
public class MocoRdersBordy extends ParentEntity {

    @ApiModelProperty("序号")
    @TableField(exist = false)
    @JsonIgnore
    private int num;

    /**
     * 生产订单表头ID;生产订单表头ID
     */
    @TableField("FMoId")
    @ApiModelProperty(name = "生产订单表头ID", notes = "生产订单表头ID")
    @JsonAlias("moId")
    private int fMoId;

    /**
     * 序号;序号
     */
    @TableField("FSortSeq")
    @ApiModelProperty(name = "序号", notes = "序号")
    @JsonAlias("sortSeq")
    private int fSortSeq;

    /**
     * 基本用量－分子;基本用量－分子
     */
    @TableField("FBaseQtyN")
    @ApiModelProperty(name = "基本用量－分子", notes = "基本用量－分子")
    @JsonAlias("baseQtyN")
    private BigDecimal fBaseQtyN;

    /**
     * 基本用量－分母;基本用量－分母
     */
    @TableField("FBaseQtyD")
    @ApiModelProperty(name = "基本用量－分母", notes = "基本用量－分母")
    @JsonAlias("baseQtyD")
    private BigDecimal fBaseQtyD;

    /**
     * 预计产量;预计产量
     */
    @TableField("FQty")
    @ApiModelProperty(name = "预计产量", notes = "预计产量")
    @JsonAlias("qty")
    private BigDecimal fQty;

    /**
     * 申请已领量;申请已领量
     */
    @TableField("FRequisitionIssQty")
    @ApiModelProperty(name = "申请已领量", notes = "申请已领量")
    @JsonAlias("requisitionIssQty")
    private BigDecimal fRequisitionIssQty;

    /**
     * 已领量;已领量
     */
    @TableField("FIFssQty")
    @ApiModelProperty(name = "已领量", notes = "已领量")
    @JsonAlias("issQty")
    private BigDecimal fIFssQty;

    /**
     * WIP属性;WIP属性(1入库/2工序/3领料/5基于BOM)
     */
    @TableField("FWIPType")
    @ApiModelProperty(name = "WIP属性", notes = "WIP属性(1入库/2工序/3领料/5基于BOM)")
    @JsonAlias("wiptype")
    private int fWIPType;

    /**
     * 品号;品号
     */
    @TableField("FInvCode")
    @ApiModelProperty(name = "品号", notes = "品号")
    @JsonAlias("invCode")
    private String fInvCode;

    /**
     * 存货名称;存货名称
     */
    @TableField("FInvName")
    @ApiModelProperty(name = "存货名称", notes = "存货名称")
    @JsonAlias("invName")
    private String fInvName;

    /**
     * 规格型号;规格型号
     */
    @TableField("FInvStd")
    @ApiModelProperty(name = "规格型号", notes = "规格型号")
    @JsonAlias("invStd")
    private String fInvStd;

    /**
     * 产品说明;产品说明
     */
    @TableField("FStdRemark")
    @ApiModelProperty(name = "产品说明", notes = "产品说明")
    @JsonAlias("stdRemark")
    private String fStdRemark;

    /**
     * 仓库编号;仓库编号
     */
    @TableField("FWhCode")
    @ApiModelProperty(name = "仓库编号", notes = "仓库编号")
    @JsonAlias("whCode")
    private String fWhCode;

    /**
     * 仓库名称;仓库名称
     */
    @TableField("FWhName")
    @ApiModelProperty(name = "仓库名称", notes = "仓库名称")
    @JsonAlias("whName")
    private String fWhName;

    /**
     * 单据行条码;单据行条码
     */
    @TableField("FcSubSysBarCode")
    @ApiModelProperty(name = "单据行条码", notes = "单据行条码")
    @JsonAlias("cSubSysBarCode")
    private String fcSubSysBarCode;

    /**
     * 检货数量;检货数量
     */
    @TableField("FPickingQty")
    @ApiModelProperty(name = "检货数量", notes = "检货数量")
    @JsonAlias("pickingQty")
    private BigDecimal fPickingQty;

    /**
     * 批号;批号
     */
    @TableField("FLotNo")
    @ApiModelProperty(name = "批号", notes = "批号")
    @JsonAlias("lotNo")
    private String fLotNo;

    /**
     * 是否返工;是否返工
     */
    @TableField("FQmFlag")
    @ApiModelProperty(name = "是否返工", notes = "是否返工")
    @JsonAlias("qmFlag")
    private int fQmFlag;

    /**
     * 生产订单数量;生产订单数量
     */
    @TableField("FMocQty")
    @ApiModelProperty(name = "生产订单数量", notes = "生产订单数量")
    @JsonAlias("mocQty")
    private BigDecimal fMocQty;


    /**
     * 需求数量;需求数量
     */
    @TableField("FMrpQty")
    @ApiModelProperty(name = "需求数量", notes = "需求数量")
    @JsonAlias("mrpQty")
    private BigDecimal fMrpQty;

    /**
     * 生产订单明细ID;生产订单明细ID
     */
    @TableField("FMoDId")
    @ApiModelProperty(name = "生产订单明细ID", notes = "生产订单明细ID")
    @JsonAlias("moDId")
    private int fMoDId;

    /**
     * 采购属性;采购属性
     */
    @TableField("FPurRemark")
    @ApiModelProperty(name = "采购属性", notes = "采购属性")
    @JsonAlias("purRemark")
    private String fPurRemark;

    /**
     * 客户物料编号;存货自定义项5
     */
    @TableField("FCustInvCode")
    @ApiModelProperty(name = "客户物料编号", notes = "存货自定义项5")
    @JsonAlias("custInvCode")
    private String fCustInvCode;

    /**
     * 备注;备注
     */
    @TableField("FProRemark")
    @ApiModelProperty(name = "备注", notes = "备注")
    @JsonAlias("remark")
    private String fProRemark;

    /**
     * 需求标志;需求标志
     */
    @TableField("FRequisitionFlag")
    @ApiModelProperty(name = "需求标志", notes = "需求标志")
    @JsonIgnore
    private int fRequisitionFlag;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getfMoId() {
        return fMoId;
    }

    public void setfMoId(int fMoId) {
        this.fMoId = fMoId;
    }

    public int getfSortSeq() {
        return fSortSeq;
    }

    public void setfSortSeq(int fSortSeq) {
        this.fSortSeq = fSortSeq;
    }

    public BigDecimal getfBaseQtyN() {
        return fBaseQtyN;
    }

    public void setfBaseQtyN(BigDecimal fBaseQtyN) {
        this.fBaseQtyN = fBaseQtyN;
    }

    public BigDecimal getfBaseQtyD() {
        return fBaseQtyD;
    }

    public void setfBaseQtyD(BigDecimal fBaseQtyD) {
        this.fBaseQtyD = fBaseQtyD;
    }

    public BigDecimal getfQty() {
        return fQty;
    }

    public void setfQty(BigDecimal fQty) {
        this.fQty = fQty;
    }

    public int getfRequisitionFlag() {
        return fRequisitionFlag;
    }

    public void setfRequisitionFlag(int fRequisitionFlag) {
        this.fRequisitionFlag = fRequisitionFlag;
    }

    public BigDecimal getfIFssQty() {
        return fIFssQty;
    }

    public void setfIFssQty(BigDecimal fIFssQty) {
        this.fIFssQty = fIFssQty;
    }

    public int getfWIPType() {
        return fWIPType;
    }

    public void setfWIPType(int fWIPType) {
        this.fWIPType = fWIPType;
    }

    public String getfInvCode() {
        return fInvCode;
    }

    public void setfInvCode(String fInvCode) {
        this.fInvCode = fInvCode;
    }

    public String getfInvName() {
        return fInvName;
    }

    public void setfInvName(String fInvName) {
        this.fInvName = fInvName;
    }

    public String getfInvStd() {
        return fInvStd;
    }

    public void setfInvStd(String fInvStd) {
        this.fInvStd = fInvStd;
    }

    public String getfStdRemark() {
        return fStdRemark;
    }

    public void setfStdRemark(String fStdRemark) {
        this.fStdRemark = fStdRemark;
    }

    public String getfWhCode() {
        return fWhCode;
    }

    public void setfWhCode(String fWhCode) {
        this.fWhCode = fWhCode;
    }

    public String getfWhName() {
        return fWhName;
    }

    public void setfWhName(String fWhName) {
        this.fWhName = fWhName;
    }

    public String getFcSubSysBarCode() {
        return fcSubSysBarCode;
    }

    public void setFcSubSysBarCode(String fcSubSysBarCode) {
        this.fcSubSysBarCode = fcSubSysBarCode;
    }

    public BigDecimal getfPickingQty() {
        return fPickingQty;
    }

    public void setfPickingQty(BigDecimal fPickingQty) {
        this.fPickingQty = fPickingQty;
    }

    public String getfLotNo() {
        return fLotNo;
    }

    public void setfLotNo(String fLotNo) {
        this.fLotNo = fLotNo;
    }

    public int getfQmFlag() {
        return fQmFlag;
    }

    public void setfQmFlag(int fQmFlag) {
        this.fQmFlag = fQmFlag;
    }

    public BigDecimal getfMocQty() {
        return fMocQty;
    }

    public void setfMocQty(BigDecimal fMocQty) {
        this.fMocQty = fMocQty;
    }

    public BigDecimal getfMrpQty() {
        return fMrpQty;
    }

    public void setfMrpQty(BigDecimal fMrpQty) {
        this.fMrpQty = fMrpQty;
    }

    public int getfMoDId() {
        return fMoDId;
    }

    public void setfMoDId(int fMoDId) {
        this.fMoDId = fMoDId;
    }

    public String getfPurRemark() {
        return fPurRemark;
    }

    public void setfPurRemark(String fPurRemark) {
        this.fPurRemark = fPurRemark;
    }

    public String getfCustInvCode() {
        return fCustInvCode;
    }

    public void setfCustInvCode(String fCustInvCode) {
        this.fCustInvCode = fCustInvCode;
    }

    public String getfProRemark() {
        return fProRemark;
    }

    public void setfProRemark(String fProRemark) {
        this.fProRemark = fProRemark;
    }
}